package org.com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * (Farms)实体类
 *
 * @author makejava
 * @since 2025-03-04 21:03:29
 */
@TableName(value = "farms")
@Data
public class Farms implements Serializable {
    private static final long serialVersionUID = 614607633503963042L;

    @TableId(type = IdType.AUTO)
    private Integer farmId;

    private Integer userId;

    private String farmName;

    private String farmAddress;

    private Double appliedSubsidyAmount;

    private Integer statusId;

    private String farmDescription;

    private Date createdAt;

    private Date updatedAt;


    @TableField(exist = false)
    private FarmStatus farmStatus;

    @TableField(exist = false)
    private List<FarmsImages> farmImages;

    public Integer getFarmId() {
        return farmId;
    }

    public void setFarmId(Integer farmId) {
        this.farmId = farmId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getFarmName() {
        return farmName;
    }

    public void setFarmName(String farmName) {
        this.farmName = farmName;
    }

    public String getFarmAddress() {
        return farmAddress;
    }

    public void setFarmAddress(String farmAddress) {
        this.farmAddress = farmAddress;
    }

    public Double getAppliedSubsidyAmount() {
        return appliedSubsidyAmount;
    }

    public void setAppliedSubsidyAmount(Double appliedSubsidyAmount) {
        this.appliedSubsidyAmount = appliedSubsidyAmount;
    }

    public Integer getStatusId() {
        return statusId;
    }

    public void setStatusId(Integer statusId) {
        this.statusId = statusId;
    }


    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getFarmDescription() {
        return farmDescription;
    }

    public void setFarmDescription(String farmDescription) {
        this.farmDescription = farmDescription;
    }

}

